package demo02捕获和抛出异常;

public class Test2 {
    public static void main(String[] args) {
        int a = 1;
        int b = 0;

        //Ctrl + Alt + T
        try {
            System.out.println(a/b);
        } catch (Exception e) {
//            System.exit(1);
            e.printStackTrace();//打印错误的栈信息
        } finally {

        }

    }
}
